import axios from "axios";
//获取子级分类
let all = (params)=>axios.get('/category/list',{params});
//添加分类
let add = (data)=>axios.post('/category/add',data);
let edit = (data)=>axios.post('/category/edit',data);
let remove = (data)=>axios.post('/category/remove',data);
export default{
    all,
    add,
    edit,
    remove,
 }
